package cn.cvs.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Auction entity.
 */

public class Auction implements java.io.Serializable {

	static {
		//TypeConstant.addType("BIGINT",long.class);
	}
	private static final long serialVersionUID = -6016074448892717083L;


	// Fields
	private Long auctionId;
	private String auctionName;
	private Double auctionStartPrice;
	private Double auctionUpset;
	private Date auctionStartTime;
	private Date auctionEndTime;
	private String auctionPic;
	private String auctionPicType;
	private String auctionDesc;
	// 扩展属性
	private List<AuctionRecord> auctionRecords = new ArrayList<>();

	// Constructors

	/** default constructor */
	public Auction() {
	}

	/** minimal constructor */
	public Auction(String auctionname, Double auctionstartprice,
			Double auctionupset, Date auctionstarttime,
			Date auctionendtime, String auctionpic, String auctionpictype) {
		this.auctionName = auctionname;
		this.auctionStartPrice = auctionstartprice;
		this.auctionUpset = auctionupset;
		this.auctionStartTime = auctionstarttime;
		this.auctionEndTime = auctionendtime;
		this.auctionPic = auctionpic;
		this.auctionPicType = auctionpictype;
	}

	/** full constructor */
	public Auction(String auctionname, Double auctionstartprice,
			Double auctionupset, Date auctionstarttime,
			Date auctionendtime, String auctionpic, String auctionpictype,
			String auctiondesc, List<AuctionRecord> auctionrecords) {
		this.auctionName = auctionname;
		this.auctionStartPrice = auctionstartprice;
		this.auctionUpset = auctionupset;
		this.auctionStartTime = auctionstarttime;
		this.auctionEndTime = auctionendtime;
		this.auctionPic = auctionpic;
		this.auctionPicType = auctionpictype;
		this.auctionDesc = auctiondesc;
		this.auctionRecords = auctionrecords;
	}

	// Property accessors

	public Long getAuctionId() {
		return this.auctionId;
	}

	public void setAuctionId(Long auctionid) {
		this.auctionId = auctionid;
	}

	public String getAuctionName() {
		return this.auctionName;
	}

	public void setAuctionName(String auctionname) {
		this.auctionName = auctionname;
	}

	public Double getAuctionStartPrice() {
		return this.auctionStartPrice;
	}

	public void setAuctionStartPrice(Double auctionstartprice) {
		this.auctionStartPrice = auctionstartprice;
	}

	public Double getAuctionUpset() {
		return this.auctionUpset;
	}

	public void setAuctionUpset(Double auctionupset) {
		this.auctionUpset = auctionupset;
	}

	public Date getAuctionStartTime() {
		return this.auctionStartTime;
	}

	public void setAuctionStartTime(Date auctionstarttime) {
		this.auctionStartTime = auctionstarttime;
	}

	public Date getAuctionEndTime() {
		return this.auctionEndTime;
	}

	public void setAuctionEndTime(Date auctionendtime) {
		this.auctionEndTime = auctionendtime;
	}

	public String getAuctionPic() {
		return this.auctionPic;
	}

	public void setAuctionPic(String auctionpic) {
		this.auctionPic = auctionpic;
	}

	public String getAuctionPicType() {
		return this.auctionPicType;
	}

	public void setAuctionPicType(String auctionpictype) {
		this.auctionPicType = auctionpictype;
	}

	public String getAuctionDesc() {
		return this.auctionDesc;
	}

	public void setAuctionDesc(String auctiondesc) {
		this.auctionDesc = auctiondesc;
	}

	public List<AuctionRecord> getAuctionRecords() {
		return this.auctionRecords;
	}

	public void setAuctionRecords(List<AuctionRecord> auctionrecords) {
		this.auctionRecords = auctionrecords;
	}

	@Override
	public String toString() {
		return "Auction{" +
				"auctionId=" + auctionId +
				", auctionName='" + auctionName + '\'' +
				", auctionStartPrice=" + auctionStartPrice +
				", auctionUpset=" + auctionUpset +
				", auctionStartTime=" + auctionStartTime +
				", auctionEndTime=" + auctionEndTime +
				", auctionPic='" + auctionPic + '\'' +
				", auctionPicType='" + auctionPicType + '\'' +
				", auctionDesc='" + auctionDesc + '\'' +
				", auctionRecords=" + auctionRecords +
				'}';
	}
}